package com.example.travelservlet.util;

import java.util.Random;

/**
 * @author wsq
 * @date 2022/12/24 22:25
 */
public class Number {
    public static String getRandomNickName(int length) {
        String str = "";
        Random random = new Random();
        for (int i = 0; i < length; i++) {
            str += String.valueOf(random.nextInt(10));
        }
        return str;
    }
}
